local Lua__chujue = fk.CreateSkill({
  name = "Lua__chujue",
  tags = {Skill.Compulsory}
})

Fk:loadTranslationTable{
  ["Lua__chujue"] = "处决",
  [":Lua__chujue"] = "锁定技，当你进入濒死状态时，若你的体力值小于0，你死亡。",
}

Lua__chujue:addEffect(fk.EnterDying, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(Lua__chujue.name) and player.hp < 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:notifySkillInvoked(player, Lua__chujue.name, "offensive")
    room:killPlayer({
        who = player,
    })
  end,
})

return Lua__chujue 